﻿@model XPressify.Models.BtnPostDeleteModel
@using Omu.Awesome.Core;
@using Omu.Awesome.Mvc.Helpers;

<script type="text/javascript">

    function successDeleteFunction(id) {
        $("#" + id).hide("fast", function () {
            $("#" + id).remove();
        }
        );
        
}

</script>


@using (Ajax.BeginForm("PostCommentDelete", "Post", new AjaxOptions() { OnSuccess = "successDeleteFunction(\'" + Model.PostId + "\')", HttpMethod = "POST", UpdateTargetId = "returnSuccessDelete", InsertionMode = InsertionMode.Replace }))
{
        <input type="hidden" id="PostId" name="PostId" value="@Model.PostId" />
        <input type="submit" value="x" class="myconfirmBtn1" id="nounderline" style="padding:0px" onmouseover="changeIdToObject(this)" onmouseout="changeIdToObject(this)"/>
}